<?php
/**
 * Created by Alan.
 * User: Alan
 * Date: 2018\10\8 0008
 * Time: 16:02
 */

namespace app\common\validate;


class BisValidate extends  BaseValidate
{
    protected $rule = [
        'name' => 'require|max:25',
        'email' => 'email',
        'logo' => 'require',
        'licence_logo' => 'require',
        'city_id' => 'require',
        'bank_info' => 'require',
        'bank_name' => 'require',
        'bank_user' => 'require',
        'faren' => 'require',
        'faren_tel' => 'require',
        'status' => 'require|number',
        'id' => 'require|IDMustBePositive'
    ];

    protected $scene = [
        'add' => ['name','email','logo','licence_logo','city_id','bank_info','bank_name','bank_user','faren','faren_tel'],
        'status' => ['status','id','email']
    ];


}